<?php

namespace app\speedDating\interfaces;

interface ServiceStatus
{

    //会员状态
    const STATUS_USER_USE = 0;//正常
    const STATUS_USER_BANNED = 1;//封禁
    const STATUS_USER = [
        ['label' => '正常', 'state' => self::STATUS_USER_USE],
        ['label' => '封禁中', 'state' => self::STATUS_USER_BANNED],
    ];

    //资产账户类型
    const ACCOUNT_TYPE_BALANCE = 1;//余额账户
    const ACCOUNT_TYPE = [
        ['label' => '余额账户', 'state' => self::ACCOUNT_TYPE_BALANCE],
    ];

    //账户状态
    const ACCOUNT_STATUS_NORMAL = 0;//正常
    const ACCOUNT_STATUS_FREEZE = 1;//冻结
    const ACCOUNT_STATUS = [
        ['label' => '正常', 'state' => self::ACCOUNT_STATUS_NORMAL],
        ['label' => '冻结', 'state' => self::ACCOUNT_STATUS_FREEZE],
    ];

    //产品进行状态描述
    const STATUS_PRO_ALL = 0;//全部
    const STATUS_PRO_RUNNING = 1;//进行中
    const STATUS_PRO_STOPPED = 2;//已结束
    const STATUS_PRO = [
        ['label' => '全部', 'state' => self::STATUS_PRO_ALL],
        ['label' => '进行中', 'state' => self::STATUS_PRO_RUNNING],
        ['label' => '已结束', 'state' => self::STATUS_PRO_STOPPED],
    ];

    //订单状态描述
    const STATUS_ORDER_LOSE = -20;//订单失败
    const STATUS_ORDER_CANCEL = -10;//订单关闭
    const STATUS_ORDER_WAIT = 10;//待付款
    const STATUS_ORDER_PAYED = 20;//已付款
    const STATUS_ORDER_END = 30;//已完成
    const STATUS_ORDER = [
        ['label' => '未中奖', 'state' => self::STATUS_ORDER_LOSE],
        ['label' => '订单关闭', 'state' => self::STATUS_ORDER_CANCEL],
        ['label' => '待付款', 'state' => self::STATUS_ORDER_WAIT],
        ['label' => '已付款', 'state' => self::STATUS_ORDER_PAYED],
        ['label' => '已完成', 'state' => self::STATUS_ORDER_END],
    ];










}